import request from '@/utils/request';

// 查询岗位列表
export function listRegisiter(query) {
    return request({
        url: '/system/companyInfo/listMinBidBag',
        method: 'get',
        params: query
    });
}

// 查询岗位详细
export function getRegisiter(postId) {
    return request({
        url: '/system/post/' + postId,
        method: 'get'
    });
}

// 新增岗位
export function addRegisiter(data) {
    return request({
        url: '/system/companyInfo',
        method: 'post',
        data: data
    });
}

// 修改岗位
export function updateRegisiter(data) {
    return request({
        url: '/system/companyInfo',
        method: 'put',
        data: data
    });
}

// 删除岗位
export function delRegisiter(id) {
    return request({
        url: '/system/companyInfo/' + id,
        method: 'delete'
    });
}
